package service;

import java.util.ArrayList;

import pojo.Answer;
import pojo.AnswerComment;
import pojo.Article;
import pojo.ArticleComment;
import pojo.Question;
import pojo.Resource;
import pojo.ResourceComment;

public interface ForumService {
	
	/**
	 * 获取所有问答区的问题
	 * @return QuestionList
	 */

	
	ArrayList<Question> getAllQuestion();

	ArrayList<Answer> getAnswerByqid(int qid);

	ArrayList<AnswerComment> getAnswerComment(int aid);

	ArrayList<Article> getAllArticle();

	ArrayList<ArticleComment> getArticleComment(int artid);

	ArrayList<Resource> getAllResource();

	ArrayList<ResourceComment> getResourceComment(int rsid);

	int sendAcComment(int aid, int userid, String acComment);

	int sendArtcComment(int artid, int userid, String artcComment);

	int sendRscComment(int rsid, int userid, String rscComment);

	int subQuestion(String title, int userid, String content);

	int subExperience(String title, int userid, String content);

	int subResource(String title, int userid, String content);

	ArrayList<Question> queryQuestionByTitle(String question);

	ArrayList<Article> queryArticleByTitle(String article);

	ArrayList<Resource> queryResourceByTitle(String resource);

	boolean updateFocusNumByqid(int qid, int qFocusNum02);

	Question getFocusNumByqid(int qid);

	boolean updateAnswerNumByqid(int aid, int aLoveNum);

	Answer getAnswerNumByqid(int aid);

	boolean updateAnswerNumByqid1(int aid, int aForkNum);

	boolean updateAnswerNumByqid2(int aid, int aReportNum);

	boolean updateAnswerNumByqid3(int aid, int aCommentNum);


	

}
